<ion-view class="ProductStream-view" view-title="批次绑定">
    <!-- <ion-content class="ProductStream-content"> -->
       
    <ion-content scroll="true" delegate-handle="streamHandle" direction="y" scrollbar-y="false" on-scroll="compute($event)" scroll-event-interval="5" overflow-scroll="true">
    <div class="stream_list">
      <ion-item>
        <div class="row">
          <div class="col col-30" id="stream0">
            <div>
              <h1>基本信息</h1>
            </div>

          </div>
          <div class="col col-70">
            <div class="clearfix">
              <div class="span">ID：{{basicInfo.ItemMasterCode}}</div>
              <div class="span">当前工序：{{basicInfo.OperationName}}</div>
              <div class="span">质检状态：{{basicInfo.QCStatus}}</div>
              <div class="span">名称：{{basicInfo.ItemMasterName}}</div>
              <div class="span">规格：{{basicInfo.Specification}}</div>
              <div class="span">分类：{{basicInfo.ItemCategory}}</div>
              <div class="span">工单：{{basicInfo.MOCode}}</div>
              <div class="span">生产批号：{{basicInfo.MOLotNumber}}</div>
              <div class="span">出货批号:{{basicInfo.ShipLotNumber}}</div>
              <div class="span">客户：{{basicInfo.Customer}}</div>
              <div class="span">开工日期：{{basicInfo.StartDateTime|date:'yyyy-MM-dd'}}</div>
              <div class="span">出货日期：{{basicInfo.EndDateTime|date:'yyyy-MM-dd'}}</div>
            </div>
          </div>
        </div>
      </ion-item>

      <ion-item ng-repeat="d in data track by $index">
        <div class="row stream-list">
          <div class="col col-30" id="stream{{$index+1}}">
            <div> <h1>{{d.name}}</h1></div>

          </div>
          <div class="col col-70">
            <div class="clearfix" ng-repeat="detail in d.detail track by $index" ng-class="{energized:detail.QCStatus}">
              <div class="span span-20" ng-class="{flag:detail.QCFlag}">
                {{detail.CollectDateTime|date:'yyyy-MM-dd'}}
                <br/>
                {{detail.CollectDateTime|date:'hh:mm:ss'}}
              </div>
              <div class="span span-15">
                {{detail.WorkName}}
              </div>
              <div class="span span-15">
                {{detail.TerminalName}}
              </div>
              <div class="span span-20">
                {{detail.User}}
              </div>
              <div class="span span-20">{{detail.WorkTime|minutesSwitch}}</div>
              <div class="span span-10">
                {{detail.QCStatus|QCSwitch}}
              </div>
              <div class="bk_list">

              </div>

            </div>
          </div>
        </div>
      </ion-item>
    </div>
  </ion-content>
</ion-view>
